package org.jeecg.modules.ywMaterialEnter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 材料入库-详情
 * @Author: jeecg-boot
 * @Date: 2024-08-22
 * @Version: V1.0
 */
@ApiModel(value = "yw_material_enter_main对象", description = "材料入库")
@Data
@TableName("yw_material_enter_detail")
public class YwMaterialEnterDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**入库单id（yw_material_enter_main主键）*/
    @ApiModelProperty(value = "入库单id(yw_material_enter_main主键)")
    private String enterId;
    /**单据编号*/
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String billNo;
    /**部品号*/
    @Excel(name = "部品号", width = 15)
    @ApiModelProperty(value = "部品号")
    private String productCode;
    /**部品名称*/
    @Excel(name = "部品名称", width = 15)
    @ApiModelProperty(value = "部品名称")
    private String productName;
    /**入库重量（kg）*/
    @Excel(name = "入库重量（kg）", width = 15)
    @ApiModelProperty(value = "入库重量（kg）")
    private java.math.BigDecimal enterWeight;
    /**
     * 入库体积（m³）
     * 计算公式：入库重量*1.4*0.001
     * */
    @Excel(name = "入库体积（m³）", width = 15)
    @ApiModelProperty(value = "入库体积（m³）")
    private java.math.BigDecimal totalVolume;
    /**货品位置*/
    @Excel(name = "货品位置", width = 15)
    @ApiModelProperty(value = "货品位置")
    private String goodsPosition;
    /**生产日期*/
    @Excel(name = "生产日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生产日期")
    private Date manufactureDate;
    /**有效标志：0-有效；1-无效*/
    @ApiModelProperty(value = "有效标志")
    private String status;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
}
